com.northgateis.util
Class Diag
java.lang.Object
|
+--com.northgateis.util.Diag
- public class Diag
- extends java.lang.Object
Defines a set of methods for converting byte arrays to displayable strings
There is no constructor as all methods are static.
|
Constructor Summary |
Diag()
|
|
Method Summary |
static java.lang.String |
bufToString(byte[] Buf,
int Start,
int Len)
convert given byte array to printable string. |
static void |
Dump(byte[] Buf,
int Start,
int Len)
Convert given byte array to printable string and print it. |
static void |
Dumper(byte[] Buf,
int Start,
int Len)
Print given byte array in classic hex and ASCII dump format. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Diag
public Diag()
bufToString
public static java.lang.String bufToString(byte[] Buf,
int Start,
int Len)
- convert given byte array to printable string. Reality delimiters
are converted to their usual character representation.
- Parameters:
Buf - byte array to convertStart - Start position in bufferLen - number of bytes to convert
Dump
public static void Dump(byte[] Buf,
int Start,
int Len)
- Convert given byte array to printable string and print it.
Reality delimiters are converted to their usual character representation.
String is printed on System.err.
- Parameters:
Buf - byte array to convertStart - Start position in bufferLen - number of bytes to convert
Dumper
public static void Dumper(byte[] Buf,
int Start,
int Len)
- Print given byte array in classic hex and ASCII dump format.
Reality delimiters are converted to their usual character representation.
The byte array is formated with 16 bytes per line.
- Parameters:
Buf - byte array to convertStart - Start position in bufferLen - number of bytes to convert
Copyright (c) 2000 Northgate Information Solutions